<?
include_once('conn.php');
include_once('include/func.php');
include("user_check.php") ;
if($_POST){
	array_pop($_POST);
	foreach($_POST as $k => $v){
		$v=htmlspecialchars($v, ENT_QUOTES);
		//$db->UPDATE("UPDATE `".tablepre."user` SET advance = concat(advance - ".array_sum(explode(',',$order_price_count)).")  WHERE (`uid`='".$checkmember[0][2]."')");
		$db->UPDATE("UPDATE `".tablepre."user` SET `".$k."`='".$v."' WHERE (`uid`='".$checkmember[0][2]."')");

		}
			header("Location: $nowpage?ok");
	exit;
	}

///

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><? echo SITE_HEADER; ?></title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> 
<link href="css/admin.css" rel="stylesheet" type="text/css" />
	<!-- jquery packed -->
	<script type="text/javascript" src="js/jquery-1.4.4.js"></script>
    <script type="text/javascript" src="js/dtree.js"></script>
    <script type="text/javascript" src="js/ajaxcart.js"></script>
	<!-- tableRowCheckboxToggle -->
    <script type="text/javascript"> 
    function fade(b) 
{ 
    $('<div id="add" class="quick-alert" style="position:absolute;"><? echo SITE_ADSTATUSOK;?></div>').insertAfter($("#example")).animate({opacity: 1.0}, 2000).fadeOut("slow",function(){ 
   $(this).remove(); 
}); 
} 
</script> 
<script>
function close_facebox(){
	alert('<? echo CART_ADDED; ?>');
 $('#facebox').fadeOut(function() {
      $('#facebox .content').removeClass().addClass('content')
    })
	}
</script>

<link href="js/facefiles/facebox.css" media="screen" rel="stylesheet" type="text/css" />
<script src="js/facefiles/facebox.js" type="text/javascript"></script>

<script type="text/javascript">
    jQuery(document).ready(function($) {
      $('a[rel*=facebox]').facebox() 
    })
	////////
function trnull(s){
	s.style.backgroundColor="";
	}
function tr1(s){
	s.style.backgroundColor="#EFEFEF";
	}
</script>
<style>
.j_td{border:#999 solid 1px;}
.pay{ width:500px;}
</style>
</head>
<body <? echo isset($_GET[ok])?'onload="fade();"':''; ?>>
<div id="wrap">
<div id="main" class="clearfix">
<div id="side">
  </div>
  <div id="head"><? include_once('user_head.php');?></div><table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="13%" valign="top"><div id="left"> <?
  include_once('user_menu.php');
  ?></div></td>
    <td width="87%" align="left" valign="top"><div id="example"> </div>
  <form id="form2" name="form2" method="post" action=""><table width="600" border="0" cellspacing="2" cellpadding="2">
  <tr>
    <td colspan="2" ><img src="images/ttfjpg.php?t=<? echo PROFILE;?>&bg=titlebg2.jpg&z=18&x=5&y=22&r=0&b=0&g=0"  /></td>
    </tr>
  <tr>
    <td width="27%" align="right"><? echo MEMBER_RANKING;?>：</td>
    <td width="73%"><? 
	
	echo $leveltype[0][1];?> | <? echo 100-$leveltype[0][2].'% '.MEMBER_DESCOUNT;?> | <? echo MEMBER_PER.' '.$leveltype[0][4].' '.MEMBER_GET.' '.$leveltype[0][3].' '.MEMBER_SCORES;?></td>
  </tr>
    <tr>
    <td width="27%" align="right" bgcolor="#F3F3F3"><? echo MEMBER_NAME;?>：</td>
    <td width="73%" bgcolor="#F3F3F3"><? 	echo mamber($con1=$checkmember[0][2],$con2=3);?></td>
  </tr>
      <tr>
        <td align="right"><? echo MEMBER_RESET_PASSWORD;?>：</td>
        <td><a href="include/reset_password.php" rel="facebox[.password]"><? echo MEMBER_RESET;?></a></td>
      </tr>
      <tr>
    <td width="27%" align="right" bgcolor="#F3F3F3"><? echo MEMBER_SALES_VOLUME;?>：</td>
    <td width="73%" bgcolor="#F3F3F3"><? 	echo unit(mamber($con1=$checkmember[0][2],$con2=5));?></td>
  </tr>
      <tr>
    <td width="27%" align="right"><? echo MEMBER_ORDER_AMOUNT;?>：</td>
    <td width="73%"><? 	echo mamber($con1=$checkmember[0][2],$con2=6);?></td>
  </tr>
      <tr>
    <td width="27%" align="right" bgcolor="#F3F3F3"><? echo MEMBER_DEPOSIT;?>：</td>
    <td width="73%" bgcolor="#F3F3F3"><? 	echo unit(mamber($con1=$checkmember[0][2],$con2=7));?></td>
  </tr>
        <tr>
    <td width="27%" align="right"><? echo MEMBER_SCORES;?>：</td>
    <td width="73%"><? 	echo mamber($con1=$checkmember[0][2],$con2=8);?></td>
  </tr>
        <tr>
    <td width="27%" align="right" bgcolor="#F3F3F3"><? echo MEMBER_WEB;?>：</td>
    <td width="73%" bgcolor="#F3F3F3"><input type="text" name="website" value="<? 	echo mamber($con1=$checkmember[0][2],$con2=9);?>" /></td>
  </tr>
        <tr>
    <td width="27%" align="right"><? echo MEMBER_QQ;?>：</td>
    <td width="73%"><input type="text" name="qq" value="<? 	echo mamber($con1=$checkmember[0][2],$con2=10);?>" onkeydown="if(event.keyCode==13)event.keyCode=9" onKeyPress="if ((event.keyCode<48 || event.keyCode>57)) event.returnValue=false" /></td>
  </tr>
        <tr>
    <td width="27%" align="right" bgcolor="#F3F3F3"><? echo MEMBER_ADDS;?>：</td>
    <td width="73%" bgcolor="#F3F3F3"><input type="text" name="add" value="<? 	echo mamber($con1=$checkmember[0][2],$con2=11);?>" /></td>
  </tr>
        <tr>
    <td width="27%" align="right"><? echo MEMBER_EMAIL;?>：</td>
    <td width="73%"><input type="text" name="email" value="<? 	echo mamber($con1=$checkmember[0][2],$con2=12);?>" /></td>
  </tr>
        <tr>
          <td width="27%" align="right" bgcolor="#F3F3F3"><? echo MEMBER_PHONE;?>：</td>
          <td width="73%" bgcolor="#F3F3F3"><input type="text" name="mob" value="<? 	echo mamber($con1=$checkmember[0][2],$con2=17);?>" onkeydown="if(event.keyCode==13)event.keyCode=9" onKeyPress="if ((event.keyCode<48 || event.keyCode>57)) event.returnValue=false" /></td>
        </tr>
                <tr>
    <td width="27%" align="right"><? echo MEMBER_TEL;?>：</td>
    <td width="73%"><input type="text" name="tel" value="<? 	echo mamber($con1=$checkmember[0][2],$con2=13);?>" onkeydown="if(event.keyCode==13)event.keyCode=9" onKeyPress="if ((event.keyCode<48 || event.keyCode>57)) event.returnValue=false" /></td>
  </tr>
        </table>
    <input type="submit" name="button2" value="<? echo PROFILE_SUBMIT;?>" />
</form></td>
  </tr>
</table>
 
  
  </div>
  </div>

<div id="footer">
<?
include_once('fooder.php');
?>
</div>
</BODY>
</HTML>